package com.yt.product.models.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.alibaba.fastjson.serializer.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * author: lvzeming
 * date: 2025-08-11 22:53
 * Description: 类目树形结构vo
 */
@Data
public class CategoryInfoTreeVO implements Serializable {

    @ApiModelProperty(value = "id")
    @JSONField(serializeUsing = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "名称")
    private String name;
    @ApiModelProperty(value = "父id")
    private Long parentId;
    @ApiModelProperty(value = "状态")
    private Integer status;
    @ApiModelProperty(value = "图片地址")
    private String pic;
    @ApiModelProperty(value = "下级结构")
    private List<CategoryInfoTreeVO> childList;
    @ApiModelProperty(value = "商品结构")
    private List<ProductInfoVO> productInfoVOList;
}
